import { reqCateListApi } from "@/api/header/index";
import { useHeaderState } from '../interface/index'
import { defineStore } from "pinia"
export const useHeaderStore = defineStore('header', {
    state(): useHeaderState {
        return {
            cateList: []
        }
    },
    actions: {
        async getCateList() {
            let res = await reqCateListApi()
            this.cateList = res.cateList
        }
    }
})